package one.stand.fallback;

import com.jmp.base.dto.ChatGroupInfoDto;
import com.jmp.base.dto.*;
import com.jmp.feign.ChatFeign;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 */
@Component
public class ChatFallback implements ChatFeign {

    @Override
    public ResultModel init() {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel save(ChatSaveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ChatInfoVo> info(ChatInfoDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ChatGroupSaveVo> groupSave(ChatGroupSaveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel groupRemove(ChatGroupRemoveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<ChatGroupInfoVo> groupInfo(ChatGroupInfoDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel groupMsgSystem(ChatGroupMsgSystemDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel msgSystem(ChatMsgSystemDto request) {
        return ResultModel.faultTolerant();
    }
}
